package cc.coolplay51.fakashop3.DO;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

/**
 * @Classname UserLog
 * @Description TODO
 * @Date 2021/4/28 17:14
 * @Created by 涂海龙
 */
@Data
@Builder
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class UserLog {
    @Id
    @GeneratedValue
    /**
     * id
     */
    private Long id;
    /**
     * 卡密
     */
    @Column
    private String km;
    /**
     * 时间
     */
    @CreationTimestamp
    @Column
    private Date time;
    /**
     * 日志描述
     */
    @Column

    private String description;
    /**
     * IP地址
     */
    @Column
    private String ip;
    /**
     * 位置
     */
    @Column
    private String location;
    /**
     * QQ
     */
    @Column
    private String qq;
    /**
     * v备注
     */
    @Column
    private String note;
    /**
     * 版本
     */
    @Column
    private String version;
    /**
     * 机器码
     */
    @Column
    private String mac;
}
